﻿using Book.Entities;
using Book.Models.UserWai;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Book.IRepositories
{
    public interface IUserRepository
    {   
        /// <summary>
        /// 获得所有用户
        /// </summary>
        /// <returns></returns>
        List<UserEntity> GetAllUser();
        /// <summary>
        /// 添加用户
        /// </summary>
        /// <param name="userWai"></param>
        void AddUser(UserWai userWai);
        void UpdateUser(UserEntity userEntity);
        /// <summary>
        /// 删除用户
        /// </summary>
        /// <param name="userWai"></param>
        void DeleteUser(string id);
        string Login(String username, String password);
        //bool Login(String username, String password);
    }
}
